package bjtu.cit.bookshop.service;

import bjtu.cit.bookshop.entities.NoteWithBLOBs;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by jia19 on 2015/9/21.
 */
@Service("noteService")
public interface INoteService {

    public NoteWithBLOBs getNoteById(int id);

    public int getNoteLength();

    public List<NoteWithBLOBs> getNoteList(int num, int offset);

    public int updateNoteInfoById(NoteWithBLOBs note);

    public int deleteNoteById(int id);

    public int createANote(NoteWithBLOBs note);

}
